package spring.cloud.tasks.executor.executor.task.task_item_execute;


import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;

/**
 * 执行状态节点名称的常量类.
 */
@Slf4j
@Setter
@Getter
public final class TaskItemNode {

    public static final String ROOT = "task_instance";

    public static final String TASK_INSTANCE = ROOT + "/%s";

    public static final String TASK_ITEM = TASK_INSTANCE + "/%s";

    public static String getTaskItemNode(final String taskInstanceId, final int taskItemIndex) {
        return String.format(TASK_ITEM, taskInstanceId, taskItemIndex);
    }


}
